﻿@* Ui层项目文件 *@
@using Util.Generators.Helpers
@using Version = Util.Generators.Helpers.Version
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    var projectName = service.GetUiProjectName();
    var application = service.GetApplicationProjectName();
    Model.Output.FileNameNoExtension = projectName;
    Model.Output.Extension = ".csproj";
    Model.Output.RelativeRootPath = $"src/{projectName}";
}
<Project Sdk="Microsoft.NET.Sdk.Web">

	<PropertyGroup>
		<TargetFramework>$(NetTargetFramework)</TargetFramework>
		<RootNamespace>@service.ProjectName</RootNamespace>
		<ImplicitUsings>enable</ImplicitUsings>
		<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
		<TypeScriptToolsVersion>Latest</TypeScriptToolsVersion>
		<IsPackable>false</IsPackable>
		<SpaRoot>ClientApp\</SpaRoot>
	</PropertyGroup>

	<ItemGroup>
		<PackageReference Include="Util.Logging.Serilog.Exceptionless" Version="@Version.Util" />
		<PackageReference Include="Util.Ui.NgAlain" Version="@Version.Util" />
		<PackageReference Include="Util.Ui.NgZorro" Version="@Version.Util" />
	</ItemGroup>

	<ItemGroup>
		<Content Remove="$(SpaRoot)**" />
		<None Remove="$(SpaRoot)**" />
		<None Include="$(SpaRoot)**" Exclude="$(SpaRoot)node_modules\**" />
        <None Remove="$(SpaRoot).angular\**" />
        <None Remove="$(SpaRoot)dist\**" />
        <None Remove="$(SpaRoot).eslintignore" />
        <None Remove="$(SpaRoot).eslintrc.js" />
        <None Remove="$(SpaRoot).gitignore" />
        <None Remove="$(SpaRoot).nvmrc" />
        <None Remove="$(SpaRoot).stylelintrc" />
        <None Remove="$(SpaRoot).prettierignore" />
        <None Remove="$(SpaRoot).prettierrc.js" />
        <None Remove="$(SpaRoot).npmignore" />
		<None Remove="$(SpaRoot)clear-node-modules.ps1" />
		<None Remove="$(SpaRoot)start.ps1" />
    </ItemGroup>
	
    <ItemGroup>
		<ProjectReference Include="..\@application\@(application).csproj" />
    </ItemGroup>
</Project>